package org.bw.bookstore.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.bw.bookstore.common.entity.TbBookDetailed;
import org.bw.bookstore.common.entity.TbBookSingle;

import java.util.List;

/**
 * @program:wisdom_bookstore
 * @description:图书详情mapper层
 * @author:liuwu
 * @create:2020-10-22 11:26
 **/
public interface BookDetailedMapper extends BaseMapper<TbBookDetailed> {

    /**
     * @Description
     * TODO 孙冬雪--> findByRFID 根据rfid获取对应书籍详情集合
     * @Param [rfids]
     * @Return java.util.List<com.bw.servercommon.entity.TbBookDetailed>
     * @Author 孙冬雪
     * @Date 2020/10/25 9:44
     **/
    List<TbBookDetailed> findByRFID(@Param("rfids")String[] rfids);

    /**
     * @Description
     * TODO 孙冬雪--> findByRFID 根据rfid获取对应书籍单品集合
     * @Param [rfids]
     * @Return java.util.List<com.bw.servercommon.entity.TbBookDetailed>
     * @Author 孙冬雪
     * @Date 2020/10/25 9:44
     **/
    List<TbBookSingle> findSingleByRFID(@Param("rfids")String[] rfids);
}
